package cn.itcast.bos.dao.base;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Area;

public interface AreaDao extends JpaRepository<Area, String> {

	Area findByProvinceAndCityAndDistrict(String province, String city,
			String district);

	

	@Query("from Area a WHERE a.province = ? and a.city= ? and a.district = ?")
	Area findByArea(String province, String city, String district);
	
}
